public class test {
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList(5);

        arrayList.Add(1);
        arrayList.Add(2);
        arrayList.Add(3);
        arrayList.Add(4);
        arrayList.Add(1,11);
        arrayList.set(2,12);
        System.out.println(arrayList.contains(11));
        arrayList.remove(11);
        System.out.println(arrayList.contains(11));
        System.out.println( arrayList.getIndex());

        arrayList.Display();
    }
}
